<?php
/**
 * @version		$Id: default.php 21322 2011-05-11 01:10:29Z dextercowley $
 * @package		Joomla.Site
 * @subpackage	mod_login
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
$user =  &JFactory::getUser();
if($user->id == 0):
?>
<div class="row forlogin" style="display: none">
	<div class="twelve columns loginform">

		<form id="loginfrm" style="display: none;">
			
			<div class="row">
				<div class="twelve columns">
					<label><strong><?php echo JText::_('WRD_TOP_MENU_LOGIN_TO_ENJOY_GREAT')?></strong></label>
					<br>
				</div>
			</div>
			<div class="row">
		    	<div class="four columns">
		    		<label><?php echo JText::_('WRD_TOP_MENU_LOGIN_EMAIL')?></label>
		      		<input type="text" class="twelve" placeholder="<?php echo JText::_('WRD_TOP_MENU_LOGIN_EMAIL')?>" id="username" name="username" />
		    	</div>
		    	<div class="four columns">
		    		<label><?php echo JText::_('WRD_TOP_MENU_LOGIN_PASSWORD')?></label>
		      		<input type="password" class="twelve" placeholder="<?php echo JText::_('WRD_TOP_MENU_LOGIN_PASSWORD')?>" id="password_login" name="password_login" />
		    	</div>
		    	<div class="four columns">
		    		<label>&nbsp;</label>
		      		<input type="button" class="button twelve last" name="login" id="btn_login" value="<?php echo JText::_('WRD_TOP_MENU_LOGIN_TO_WMC_VIPCARD')?>" />
				</div>
		  	</div>
		  	<div class="row">
		  		<div class="twelve columns">
		      		<p><a href="<?php echo JRoute::_('index.php?option=com_users&view=reset'); ?>"><?php echo JText::_('WRD_TOP_MENU_LOGIN_FORGOT_PASSWORD')?></a></p><br>
					<p><?php echo JText::_('WRD_TOP_MENU_LOGIN_DONT_HAVE_AN_ACCOUNT')?><a href="javascript:void(null);" id="signUp_alt"><?php echo JText::_('WRD_TOP_MENU_LOGIN_CLICK_HERE')?></a> <?php echo JText::_('WRD_TOP_MENU_LOGIN_TO_REGISTER')?></p>
	    		</div>
			</div>
		</form>
		
		<form id="regfrm" style="display: none;" method="post" action="<?php echo JRoute::_('index.php?option=com_wrd&task=profile.save'); ?>">
			<div class="row">
				<div class="four columns">
					<p><?php echo JText::_('WRD_TOP_MENU_REGISTER_DONT_HAVE_ACCOUNT_YET')?></p>
					<p><?php echo JText::_('WRD_TOP_MENU_REGISTER_CREATE_YOUR_OWN_VIPCARD')?></p>
					<p><?php echo JText::_('WRD_TOP_MENU_REGISTER_YOUR_BENEFITS_INCLUDE')?></p>
					<p>
						<?php echo JText::_('WRD_TOP_MENU_REGISTER_AGE_LIMIT')?>
						
					</p>
				</div>
				<div class="four columns">
					<div class="row">
						<div class="twelve columns">
				    		<label><?php echo JText::_('WRD_TOP_MENU_REGISTER_EMAIL')?></label>
				      		<input type="text" class="twelve" placeholder="<?php echo JText::_('WRD_TOP_MENU_REGISTER_EMAIL')?>" name="email1" id="email1"/>
				    	</div>
			    	</div>
			    	<div class="row">
				    	<div class="twelve columns">
				    		<label><?php echo JText::_('WRD_TOP_MENU_REGISTER_ENTER_PASSWORD')?></label>
				      		<input type="password" class="twelve" id="password" name="password" placeholder="<?php echo JText::_('WRD_TOP_MENU_REGISTER_ENTER_PASSWORD')?>" />
				    	</div>
			    	</div>
			    	<div class="row">
				    	<div class="twelve columns">
				    		<label><?php echo JText::_('WRD_TOP_MENU_REGISTER_RE_ENTER_PASSWORD')?></label>
				      		<input type="password" class="twelve" id="password1" name="password1" placeholder="<?php echo JText::_('WRD_TOP_MENU_REGISTER_RE_ENTER_PASSWORD')?>" />
				    	</div>
			    	</div>
					<div class="row">
				    	<div class="twelve columns" style="width: 470px;">
				    		<input id="term" type="checkbox" name="term" value="term"><?php echo JText::_('WRD_TOP_MENU_REGISTER_AGREE_TERM_CONDITION')?><br>
				    	</div>
			    	</div>
				</div>
				<div class="four columns">
					<label>&nbsp;</label>
			      	<input type="button" class="button twelve" name="signup" id="signup" value="<?php echo JText::_('WRD_TOP_MENU_REGISTER_SIGN_UP')?>" />
				</div>
			</div>
			<input type="hidden" name="profile" value="">	
			<input type="hidden" name="option" value="com_wrd">	
			<input type="hidden" name="task" value="profile.save">	
			<?php echo JHtml::_('form.token');?>
		</form>
	</div>
</div>
<?php endif;?>